<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
  <style>
      #a{color: green}
      .b2{color: blue}
      input[type="text"]body>p{background-color: red}
      body>div>div>p{color: pink}
      div div p{
          background-color: yellow;
      }
      a:link{color: green}
      a:visited{color: red}
      a:hover{color: yellow}
      a:active{color: pink}

  </style>
</head>
<body>
<ul>
  <li id="a">刘德华</li>
  <li>张学友</li>
  <li class="b2">郭富城</li>
</ul>
<p>香蕉</p>
<p class="b2">苹果</p>
<input type="text"><input type="password">
<div>
  <p>p1</p>
  <div><p>p2</p></div>
  <div><div><P>P3</P></div></div>
</div>
<a href="http://www.qq.com">腾讯</a>
</body>
</html>